package com.wjggy.core.service.user;

import javax.servlet.http.HttpServletResponse;

import com.wjggy.core.entities.User;


 /**
 *  <p>Description:  </p>
 *  <p>Copyright:Copyright (c) 2012  </p>
 *  <p>Company:wjggy  </p>
 *  @author xiaofan.yu  
 *  @date   2012-1-9 上午10:40:52    
 *  @project  wjggy
 *  @version  1.0.0
 *  @see   
 *  @since 1.6 
 */
public interface LoginService {
	/**
	 * 
	 *  @author xiaofan.yu  
	 *  DateTime 2011-12-10 下午09:48:08
	 *  @see 
	 *  @since 用户登陆 1.0
	 *  describe:  该类用于用户登陆 
	 *  @param response 
	 *  @param admin 登陆用户信息
	 *  @param addAuthCode 验证码
	 *  @return  -1账号不存在 0密码错误 1登陆成功 2验证码错误  3账号不是管理员，4账号被封
	 */
	
	public int  loginAdmin(HttpServletResponse response,User admin,String addAuthCode);
	
	 
}

